<?php

	define('API','http://i.buger.net/ibuger_service/');

class Api{

    //密码修改接口
	function pass($sid,$uid,$pwd,$newpwd){
	    $url=API."c/mod_user_pwd.jsp?s_id=".$sid."&s_udid=".$uid."&phone_uid=".$uid."&pwd=".$pwd."&new_pwd=".$newpwd;
	    return $url;       
	}
    //登陆接口
	function login($user,$pwd){
		$url=API.'c/login_comm.jsp?user='.$user.'&pwd='.$pwd;
		return $url;
	}
    //注册接口
	function reg($phone,$pass,$name,$ibg){
		$url=API."c/regist_device_user.jsp?phone=" . $phone . "&pwd=" . $pass . "&name=" . $name . "&app_kind=" . $ibg;
		return $url;
	}
    //图片获取接口
	function img($img_id,$w,$h){
		$url=API."comm/comm_img.jsp?id=" . $img_id . "&w=".$w."&h=".$h;
		return $url;
	}
    //修改资料接口
	function acc($sid,$uid,$name,$phone){
		$url=API."c/mod_user_info.jsp?s_id=".$sid."&s_udid=".$uid."&phone_uid=".$uid."&name=".$name."&phone=".$phone;
		return $url;
	}
    //修改头像接口
	function modimg($uid,$imgid){
		$url=API."sns/save_tx_imgid.jsp?uid=".$uid."&img_id=".$imgid;
		return $url;
	}
    //上传图片接口
	function upimg(){
		$url=API."comm/comm._up_img.jsp?";
	}
    //生活频道接口
	function o2o(){
		$url=API."b/get_pindaos.jsp";
		return $url;
	}
    //图片获取接口
	function loadimg(){
		$url=API."comm/comm_img.jsp?";
		return $url;
	}
    //频道接口
	function pindao($uid,$sid){
		$url=API."pindao/user_pindaolist.jsp?s_id=".$sid."&s_udid=".$uid."&uid=".$uid."&ver=0";
		return $url;
	}
     //热门话题接口
	function hot($app_kind,$day){
		$url=API."lbbs/hot_posts2.jsp?app_kind=".$app_kind."&day=".$day."&gps_lng=0&gps_lat=0&addr=0&begin=0&plen=10&need_flag=true";
		return $url;
	}
    
    //最新话题接口
	function newht($app_kind,$day){
		$url=API."lbbs/new_posts_action2.jsp?app_kind=".$app_kind."&day=".$day."&gps_lng=0&gps_lat=0&addr=0&begin=0&plen=10&need_flag=true";
		return $url;
	}
    
    //关注动态接口
    function sec($sid,$udid,$uid,$log,$kind){
        $url=API."c/user_feeds_sec.jsp?s_id=".$sid."&s_udid=".$udid."&uid=".$uid."&begin=0&plen=10&logined=".$log."&k=all&kind=".$kind."&last=0&news=0";
        return $url;
    }
    
    //@我动态接口
    function atme($uid,$log,$kind){
        $url=API."c/user_feeds_atme_sec.jsp?uid=".$uid."&begin=0&plen=10&logined=".$log."&k=me&kind=".$kind."&last=0&news=0";
        return $url;
    }
    //朋友动态接口
    function friend($uid,$log,$kind){
        $url=API."c/user_friend_feeds_sec.jsp?uid=".$uid."&begin=0&plen=10&logined=".$log."&k=friend&kind=".$kind."&last=0&news=0";
        return $url;
    }
    //热门频道接口
    function hotpd($app_kind,$day){
		$url=API."lbbs/bbs_hot_kinds2.jsp?app_kind=".$app_kind."&day=".$day."&begin=0&plen=10";
		return $url;
	}
    //活跃用户接口
    function hotuser($app_kind,$day){
		$url=API."lbbs/hot_visitors.jsp?app_kind=".$app_kind."&day=".$day."&gps_lng=0&gps_lat=0&addr=0&begin=0&plen=10";
		return $url;
	}
    //附近的动态接口
    function sidedt($app_kind,$day){
		$url=API."pindao/pindao_news.jsp?gps_lng=0&gps_lat=0&addr=0&begin=0&plen=10";
		return $url;
	}
    
    //获取用户信息接口sns/get_user_info.jsp
    function sns($sid,$udid,$uid){
        $url=API."sns/get_user_info.jsp?s_id=".$sid."&s_udid=".$udid."&uid=".$uid;
        return $url;
    }
    
    //内置推荐频道接口
    function tui($ibg){
        $url=API."pindao/get_tj_huashuo_pd.jsp?s_ibg_kind=".$ibg;
        return $url;
    }
    
    
    
    
    
    
    
    
}